package com.example.administrator.random;

import android.os.Bundle;

/**
 * A simple {@link Fragment} subclass.
 */
public class PrefFragment extends android.preference.PreferenceFragment {

	public PrefFragment() {
		// Required empty public constructor
	}

	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		getPreferenceManager().setSharedPreferencesMode(1);
		// 添加我们创建的布局文件
		addPreferencesFromResource(R.xml.pref_setting);
	}

}
